#pragma once




#ifdef __cplusplus
extern "C" {
#endif

typedef enum
{
    MqttQos0 = 0x00,
    MqttQos1 = 0x01,
    MqttQos2 = 0x02,
    MqttSubFail = 0x80
} MqttQos_e;

void mqtt5_init(void);
void mqttSubscribe(const char *topic);
int mqttPublish(const char *topic, const char *payload);
int mqttPublishRetain(const char *topic, const char *payload);

#ifdef __cplusplus
}
#endif